import request from "@/lib/request";

const serviceName = '/ctmkt';

// banner
export const getBanner=(params)=>{
	return request.GET({
		url:`${serviceName}/openapi/publicBanner/page`,
		data:params
	})
}

// 客户心声
export const getCustomerVoice=(params)=>{
	return request.GET({
		url:`${serviceName}/openapi/customerVoice/page`,
		data:params
	})
}

// 分销收益排行版
export const distributionRank=(params)=>{
	return request.GET({
		url:`${serviceName}/inner/distributionRank/page`,
		data:params
	})
}

// 加入照护师
export const enjoyNursingApply=(params)=>{
	return request.POST({
		url:`${serviceName}/inner/nursingApply`,
		data:params
	})
}
//新增意见反馈
export const newFeedback =(params)=>{
    return request.POST({
        url:`${serviceName}/inner/feedback`,
		data:params
    })
}

//获取用户居住过的医院
export const userHospital =(params)=>{
    return request.GET({
        url:`${serviceName}/inner/feedback/getHospitalList`,
		data:params
    })
}

// 获取反馈列表
export const userFeedback =()=>{
    return request.GET({
        url:`${serviceName}/inner/feedback/getMyFeedbackList`,
    })
}

//获取单个意见反馈
export const userFeedbackParticulars =(id)=>{
    return request.GET({
        url:`${serviceName}/inner/feedback/${id}`,
    })
}
// 获得满意度调查详情
export const getExamination = (id, params) => {
	return request.GET({
		url: `${serviceName}/inner/csr/${id}`,
		data: params
	})
}
// 获取会员专属权益
export const getmembers = (name) => {
	return request.GET({
		url: `${serviceName}/inner/ctmkt/members/${name}`,
	})
}
// 获取会员帮助-详情
export const gethelpArticlePage = (params) => {
	return request.GET({
		url: `${serviceName}/inner/ctmkt/members/helpArticlePage`,
		data: params
	})
}
// 获取会员帮助-详情
export const getMembershelpArticlePage = (articleId,params) => {
	return request.GET({
		url: `${serviceName}/inner/ctmkt/members/helpArticle/${articleId}`,
		data: params
	})
}
// 获取当前时间公告
export const getAnnouncements = (params) => {
	return request.GET({
		url: `${serviceName}/inner/announcements`,
		data: params
	})
}
